package com.kanshu.ksgb.fastread.doudou.module.bookcity.view;

import android.content.Context;
import android.support.annotation.Nullable;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.widget.LinearLayout;

import com.kanshu.ksgb.fastread.doudou.R;
import com.kanshu.ksgb.fastread.doudou.module.bookcity.bean.SelectedBean;

/**
 * Created by wcy on 18/5/15.
 */

public class DefaultItemLayout extends LinearLayout implements IRefresh<SelectedBean> {

    public DefaultItemLayout(Context context) {
        super(context);
        init();
    }

    public DefaultItemLayout(Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
        init();
    }

    public DefaultItemLayout(Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        init();
    }

    private void init() {
        setOrientation(VERTICAL);
        LayoutInflater.from(getContext()).inflate(R.layout.item_default_layout, this);
    }

    @Override
    public void refresh(SelectedBean selectedBean, Object object) {

    }

    @Override
    public void onError(int code, String desc) {

    }

    @Override
    public void reset() {

    }
}
